<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%@ include file="../../header_inc.jsp"%>
<script type="text/javascript">
	//所有的子窗体都需要有一个save函数，当点击弹出窗体的保存按钮时所进行的操作

	function btnSave_click() {
			var fun_ret;
			var vals = $('#formModule').serialize();
			var url = '${saveUrl}';
			$.ajax({
				async : false,
				type : "POST",
				url : url,
				data : vals,
				cache : false,
				dataType : 'json',
				success : function(data) {
					if (data.success != 0) {
						//top.Ext.Msg.alert("提示",data.msg);
						 $.messager.alert("提示",data.msg,'info');
					} else {
						fun_ret = true;
					}
				}
			});
	return fun_ret;
	}
</script>
</head>
<body>

	<div style="padding: 1px" align="center" >
	
		<form id="formModule" method="post">
			<table border="0">
				<tr height="0">
					<td><c:if test="${!empty model.categoryId }"><input type="hidden" value="${model.categoryId }" name="categoryId"></input></c:if></td>
				</tr>
				<tr height="30">
					<td>名称：</td>
					<td><input id="NAME" maxlength="10" placeholder="请输入类别名称"
						class="easyui-validatebox textbox" type="text"
						name="name" data-options="required:true"
						style="width: 180px;height: 25px" value="${model.name }"></input></td>
				</tr>
				<tr height="60">
					<td>说明：</td>
					<td><textarea id="NAME" maxlength="50" placeholder="在此输入说明"
						class="easyui-validatebox textbox" type="text"
						name="summary" 
						style="width: 180px;height: 60px">${model.summary }</textarea></td>
				</tr>
				<tr height="30">
					<td>状态：</td>
					<td><select id="status" name="status">
							<option value="9" <c:if test="${model.status==9 }">selected</c:if>>启用</option>
							<option value="1" <c:if test="${model.status==1 }">selected</c:if>>禁用</option>
					</select></td>
				</tr>
				
			</table>
		</form>
	</div>
</body>
</html>
